.class Lnbisdk/gx;
.super Lnbisdk/qk;


# instance fields
.field private fe:J

.field private jL:Landroid/telephony/TelephonyManager;

.field private jM:I

.field private jN:I

.field private jO:I

.field private jP:I

.field private jQ:I

.field private jR:I

.field private jS:I

.field private jT:I

.field private jU:J

.field private jV:Z

.field private jW:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/telephony/NeighboringCellInfo;",
            ">;"
        }
    .end annotation
.end field

.field private jX:Landroid/telephony/PhoneStateListener;


# direct methods
.method public constructor <init>()V
    .locals 3

    const-wide/16 v1, 0x0

    const/4 v0, 0x0

    invoke-direct {p0}, Lnbisdk/qk;-><init>()V

    iput v0, p0, Lnbisdk/gx;->jP:I

    iput v0, p0, Lnbisdk/gx;->jQ:I

    iput v0, p0, Lnbisdk/gx;->jR:I

    iput v0, p0, Lnbisdk/gx;->jS:I

    iput v0, p0, Lnbisdk/gx;->jT:I

    iput-wide v1, p0, Lnbisdk/gx;->jU:J

    iput-boolean v0, p0, Lnbisdk/gx;->jV:Z

    iput-wide v1, p0, Lnbisdk/gx;->fe:J

    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lnbisdk/gx;->jW:Ljava/util/List;

    new-instance v0, Lnbisdk/kd;

    invoke-direct {v0, p0}, Lnbisdk/kd;-><init>(Lnbisdk/gx;)V

    iput-object v0, p0, Lnbisdk/gx;->jX:Landroid/telephony/PhoneStateListener;

    return-void
.end method

.method static synthetic a(Lnbisdk/gx;I)I
    .locals 0

    iput p1, p0, Lnbisdk/gx;->jT:I

    return p1
.end method

.method static synthetic a(Lnbisdk/gx;)J
    .locals 2

    iget-wide v0, p0, Lnbisdk/gx;->fe:J

    return-wide v0
.end method

.method static synthetic a(Lnbisdk/gx;J)J
    .locals 0

    iput-wide p1, p0, Lnbisdk/gx;->fe:J

    return-wide p1
.end method

.method static synthetic b(Lnbisdk/gx;)V
    .locals 0

    invoke-direct {p0}, Lnbisdk/gx;->ft()V

    return-void
.end method

.method private ft()V
    .locals 3

    const/4 v2, -0x1

    iget-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-boolean v0, p0, Lnbisdk/gx;->jV:Z

    const/4 v1, 0x1

    if-eq v0, v1, :cond_0

    invoke-virtual {p0}, Lnbisdk/gx;->fq()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :cond_2
    :goto_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/gx;->jU:J

    goto :goto_0

    :pswitch_0
    iget-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getCellLocation()Landroid/telephony/CellLocation;

    move-result-object v0

    check-cast v0, Landroid/telephony/gsm/GsmCellLocation;

    if-eqz v0, :cond_3

    invoke-virtual {v0}, Landroid/telephony/gsm/GsmCellLocation;->getCid()I

    move-result v1

    iput v1, p0, Lnbisdk/gx;->jP:I

    invoke-virtual {v0}, Landroid/telephony/gsm/GsmCellLocation;->getLac()I

    move-result v0

    iput v0, p0, Lnbisdk/gx;->jQ:I

    iget-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getNetworkOperator()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_2

    const/4 v1, 0x0

    const/4 v2, 0x3

    :try_start_0
    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lnbisdk/gx;->jR:I

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lnbisdk/gx;->jS:I
    :try_end_0
    .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    goto :goto_1

    :cond_3
    iput v2, p0, Lnbisdk/gx;->jP:I

    iput v2, p0, Lnbisdk/gx;->jQ:I

    iput v2, p0, Lnbisdk/gx;->jR:I

    iput v2, p0, Lnbisdk/gx;->jS:I

    goto :goto_1

    :pswitch_1
    iget-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getCellLocation()Landroid/telephony/CellLocation;

    move-result-object v0

    check-cast v0, Landroid/telephony/cdma/CdmaCellLocation;

    if-eqz v0, :cond_4

    invoke-virtual {v0}, Landroid/telephony/cdma/CdmaCellLocation;->getBaseStationId()I

    move-result v1

    iput v1, p0, Lnbisdk/gx;->jM:I

    invoke-virtual {v0}, Landroid/telephony/cdma/CdmaCellLocation;->getSystemId()I

    move-result v1

    iput v1, p0, Lnbisdk/gx;->jN:I

    invoke-virtual {v0}, Landroid/telephony/cdma/CdmaCellLocation;->getNetworkId()I

    move-result v0

    iput v0, p0, Lnbisdk/gx;->jO:I

    goto :goto_1

    :cond_4
    iput v2, p0, Lnbisdk/gx;->jM:I

    iput v2, p0, Lnbisdk/gx;->jN:I

    iput v2, p0, Lnbisdk/gx;->jO:I

    goto :goto_1

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method


# virtual methods
.method public final c(Landroid/content/Context;)Z
    .locals 4

    const/4 v3, 0x1

    const-string v0, "google_sdk"

    sget-object v1, Landroid/os/Build;->PRODUCT:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "sdk"

    sget-object v1, Landroid/os/Build;->PRODUCT:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    iput-boolean v3, p0, Lnbisdk/gx;->jV:Z

    :cond_1
    const-string v0, "phone"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/telephony/TelephonyManager;

    iput-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    iget-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    iget-object v1, p0, Lnbisdk/gx;->jX:Landroid/telephony/PhoneStateListener;

    const/16 v2, 0x100

    invoke-virtual {v0, v1, v2}, Landroid/telephony/TelephonyManager;->listen(Landroid/telephony/PhoneStateListener;I)V

    move v0, v3

    :goto_0
    return v0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final destroy()V
    .locals 3

    iget-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    iget-object v1, p0, Lnbisdk/gx;->jX:Landroid/telephony/PhoneStateListener;

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/telephony/TelephonyManager;->listen(Landroid/telephony/PhoneStateListener;I)V

    :cond_0
    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    return-void
.end method

.method public final eu()I
    .locals 1

    iget v0, p0, Lnbisdk/gx;->jT:I

    return v0
.end method

.method public final fp()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Landroid/telephony/NeighboringCellInfo;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getNeighboringCellInfo()Ljava/util/List;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lnbisdk/gx;->jW:Ljava/util/List;

    goto :goto_0
.end method

.method public final fq()I
    .locals 2

    iget-boolean v0, p0, Lnbisdk/gx;->jV:Z

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    const/4 v0, 0x2

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/gx;->jL:Landroid/telephony/TelephonyManager;

    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getPhoneType()I

    move-result v0

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final fr()Lnbisdk/cb;
    .locals 6

    const/4 v5, 0x0

    const/4 v4, 0x2

    iget-boolean v0, p0, Lnbisdk/gx;->jV:Z

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    new-instance v0, Lnbisdk/cb;

    const/16 v1, 0x37

    const/16 v2, 0x1692

    const/16 v3, -0x57

    invoke-direct {v0, v4, v1, v2, v3}, Lnbisdk/cb;-><init>(IIII)V

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {p0}, Lnbisdk/gx;->fq()I

    move-result v0

    if-ne v0, v4, :cond_3

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lnbisdk/gx;->jU:J

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x3a98

    cmp-long v0, v0, v2

    if-ltz v0, :cond_1

    invoke-direct {p0}, Lnbisdk/gx;->ft()V

    :cond_1
    invoke-static {v5}, Lnbisdk/gz;->f(Lcom/nbi/common/NBIContext;)Lnbisdk/gz;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-virtual {v0}, Lnbisdk/gz;->fu()I

    move-result v0

    iput v0, p0, Lnbisdk/gx;->jT:I

    :cond_2
    new-instance v0, Lnbisdk/cb;

    iget v1, p0, Lnbisdk/gx;->jN:I

    iget v2, p0, Lnbisdk/gx;->jO:I

    iget v3, p0, Lnbisdk/gx;->jM:I

    iget v4, p0, Lnbisdk/gx;->jT:I

    invoke-direct {v0, v1, v2, v3, v4}, Lnbisdk/cb;-><init>(IIII)V

    goto :goto_0

    :cond_3
    move-object v0, v5

    goto :goto_0
.end method

.method public final fs()Lnbisdk/pv;
    .locals 6

    const/4 v4, 0x0

    invoke-virtual {p0}, Lnbisdk/gx;->fq()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_2

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lnbisdk/gx;->jU:J

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x3a98

    cmp-long v0, v0, v2

    if-ltz v0, :cond_0

    invoke-direct {p0}, Lnbisdk/gx;->ft()V

    :cond_0
    invoke-static {v4}, Lnbisdk/gz;->f(Lcom/nbi/common/NBIContext;)Lnbisdk/gz;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lnbisdk/gz;->fu()I

    move-result v0

    iput v0, p0, Lnbisdk/gx;->jT:I

    :cond_1
    new-instance v0, Lnbisdk/pv;

    iget v1, p0, Lnbisdk/gx;->jR:I

    iget v2, p0, Lnbisdk/gx;->jS:I

    iget v3, p0, Lnbisdk/gx;->jQ:I

    iget v4, p0, Lnbisdk/gx;->jP:I

    iget v5, p0, Lnbisdk/gx;->jT:I

    invoke-direct/range {v0 .. v5}, Lnbisdk/pv;-><init>(IIIII)V

    :goto_0
    return-object v0

    :cond_2
    move-object v0, v4

    goto :goto_0
.end method
